package Java_Concurrency_in_Practice.c6_3_1;

import java.util.List;

/**
 * 串行的创建页面元素
 */
public class SingleThreadRender {
    void renderPage(CharSequence source) {
        RenderUtil.renderText(source);
        List<ImageInfo> imageInfos = RenderUtil.scanForImageInfo(source);
        for (ImageInfo info : imageInfos)
            RenderUtil.renderImage(info.downloadImage());
    }

}
